import Vue from 'vue'
import App from './App.vue'

import './assets/scss/style.scss'
import router from './router'
import VueAwesomeSwiper from 'vue-awesome-swiper'
 
// import style
import 'swiper/css/swiper.css'
 
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

import Card from './components/Card.vue'
Vue.component('m-card',Card)

import ListCard from './components/ListCard.vue'
Vue.component('m-list-card',ListCard)


import axios from 'axios'
axios.defaults.baseURL = process.env.VUE_APP_API_URL || '/admin/api' //生产环境变量

// axios.defaults.baseURL = 'http://localhost:3000/web/api'
Vue.prototype.$http = axios


Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
